package org.blade.personal.utils.treebuilder;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Transient;

@SuppressWarnings("hiding")
public class Tree {
	
	@Transient
	private List<Tree> children = new ArrayList<Tree>();
	
	@Transient
	private boolean removed;

	private Long parentId;
	
	private Long id;

	public List<Tree> getChildren() {
		return children;
	}

	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	public boolean isRemoved() {
		return removed;
	}

	public void setRemoved(boolean removed) {
		this.removed = removed;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public void addChild(Tree tree){
		this.children.add(tree);
	}
	
}
